//
//  SwitchTheServer.m
//  CRSCMOA
//
//  Created by goldnut on 16/8/30.
//  Copyright © 2016年 王文晓. All rights reserved.
//

#import "SwitchTheServer.h"

@implementation SwitchTheServer







//获取当前view的控制器

- (UIViewController*)viewController:(UIView *)selfView {
for (UIView* next = [selfView superview]; next; next = next.superview) {
    UIResponder* nextResponder = [next nextResponder];
if ([nextResponder isKindOfClass:[UIViewController class]]) {
    return (UIViewController*)nextResponder;
}
}
    return nil;
}




- (IBAction)cancelBtn:(UIButton *)sender {
    
//    self.view.hidden = YES;
    [self.view removeFromSuperview];
    [self endEditing:YES];
    
}

- (IBAction)confirmBtn:(UIButton *)sender {
    
    self.view.hidden = YES;
    [self endEditing:YES];
    
}











@end
